#include "stdafx.h"
#include "ChildSocket.h"
#include "ChatServerExam.h"

CChildSocket::CChildSocket()
{
}


CChildSocket::~CChildSocket()
{
}


void CChildSocket::OnClose(int nErrorCode)
{
	((CChatServerExamApp*)AfxGetApp())->CloseChild(this);
	CSocket::OnClose(nErrorCode);
}

void CChildSocket::OnReceive(int nErrorCode)
{
	((CChatServerExamApp*)AfxGetApp())->ReceiveData(this);
	CSocket::OnReceive(nErrorCode);
}
